﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SockLib.Device
{
    class MODBUS_MODEL
    {
        /// <summary>
        /// gprs编号
        /// </summary>
        public string gprs_code { get; set; }

        /// <summary>
        /// modbus协议帧
        /// </summary>
        public byte[] modbus_msg { get; set; }

        /// <summary>
        /// <para>标志位</para>
        /// <para>0:注册</para>
        /// <para>1:发送采集指令</para>
        /// <para>2:返回数据</para>
        /// </summary>
        public int flag { get; set; }

        /// <summary>
        /// 注册GPRS的电话号码
        /// </summary>
        public string phone { get; set; }

        /// <summary>
        /// 采集间隔时间
        /// </summary>
        public int Freq { get; set; }

        /// <summary>
        /// 验证字符串
        /// </summary>
        public string user_key { get; set; }

    }
}
